import { MemoryRouter } from "@solidjs/router";
import { routes } from "../router/settings";
import Layout from "./com/Layout";
import '@/assets/css/settings.css'
import { ComUtils } from "@/utils/Com";
import { Backups } from "@/utils/backups";
import { onMount } from "solid-js";
import { DogEditor } from "@/utils/dog-editor";

DogEditor.init()

export default function () {
    onMount(() => {
        Backups.init()
        ComUtils.callChromeMethod('setSettingTab', {})
    })
    return <MemoryRouter root={Layout}>
        {routes}
    </MemoryRouter >
}